C program to print patterns of numbers and stars | Programming